﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace Animoso.Data.Conventions
{
    class AuthorConvention : IReferenceConvention
    {
        public void Apply(IManyToOneInstance instance)
        {
            if(instance.Name == "Author")
            {
                instance.Cascade.None();
            }
        }
    }
}
